#ifndef SKYBOX_H
#define SKYBOX_H

class SkyBox;

#include <cstring>
#include <vector>
#include <ctime>
#include "GameResources.h"


typedef enum {morning, afternoon, evening, night} TimeOfDay;

typedef struct {
   std::string material;
   TimeOfDay time;
} SkyData;

class SkyBox
{
    public:
        SkyBox(GameResources *r);
       ~SkyBox();
        std::string getSkyBox();
        
    private:
        std::vector<SkyData> skies;
        void loadConfig();
        TimeOfDay getTimeOfDayFromString(std::string);
        TimeOfDay getTimeOfDay();
        int getSkyIndexByTime();
        GameResources *resources;
};

#endif

